package com.demoproject;

import android.content.Intent;
import android.net.Uri;

import com.facebook.react.ReactActivity;

import java.io.File;

public class MainActivity extends ReactActivity {

    /**
     * Returns the name of the main component registered from JavaScript.
     * This is used to schedule rendering of the component.
     */
    @Override
    protected String getMainComponentName() {
        Intent intent = new Intent();
        File file  = new File("/storage/emulated/0/did");
        Uri uri = Uri.fromFile(file);
        intent.setDataAndType(uri, "text/plain");
        return "DemoProject";
    }
}
